package com.tang.controller;

import com.tang.dto.AddArticleDto;
import com.tang.sys.ResponseResult;
import com.tang.sys.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/blog/article")
public class BlogArticleController {

    @Autowired
    private IArticleService iArticleService;

    @PostMapping
    public ResponseResult Blogadd(@RequestBody AddArticleDto blogarticle){

        return iArticleService.Blogadd(blogarticle);
    }



}
